package com.excesys.exsecs.access.entity;

import cn.hutool.json.JSONObject;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.FastjsonTypeHandler;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@TableName(autoResultMap = true)
@Schema(description = "数据流水")
@NoArgsConstructor
@AllArgsConstructor
public class DataFlowOperation {

	/**
	 * 表名
	 */
	@Schema(description="表名")
	private String tableName;

	/**
	 * 设备id
	 */
	@Schema(description="设备id")
	private String unitNo;

	/**
	 * 数据json
	 */
	@Schema(description="数据json")
	@TableField(typeHandler = FastjsonTypeHandler.class)
	private String data;

	/**
	 * 创建时间
	 */
	@Schema(description="创建时间")
	private LocalDateTime createTime;
}
